package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import com.parenting.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 我的金币记录
 * </p>
 *
 * @author zcj
 * @since 2021-05-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("parenting_gold")
@ApiModel(value = "Gold对象", description = "我的金币记录")
public class Gold extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "金币数量")
    @TableField("GOLD_NUM")
    private BigDecimal goldNum;

    @ApiModelProperty(value = "获得方式")
    @TableField("GET_WAY")
    private String getWay;

    @ApiModelProperty(value = "有效期")
    @TableField("VALIDITY")
    private LocalDate validity;

    @ApiModelProperty(value = "获得方式类型 1:分享2:参与拼团3:评论被采纳4:文章评价")
    @TableField("GET_WAY_TYPE")
    private Integer getWayType;

    @ApiModelProperty(value = "是否完成组团（仅仅对组团使用） 0:失败1:组团中2:结束")
    @TableField("TEAM_SUCCESS")
    private Integer teamSuccess;

    @ApiModelProperty(value = "团队ID")
    @TableField("TEAM_ID")
    private String teamId;

    @ApiModelProperty(value = "活动名称")
    @TableField("ACTIVITY_NAME")
    private String activityName;

    @ApiModelProperty(value = "用户手机号")
    @TableField("CREATED_PHONE")
    private String createdPhone;


}
